package asciiTablePrinting;

import java.util.ArrayList;

public class ASCIIBooleanColumn extends ASCIITableColumn{
	
	ArrayList<Boolean> bools;
	
	public ASCIIBooleanColumn(ArrayList<String> headlines,ArrayList<Boolean> bools, int columnWidth) {
		super(headlines, columnWidth);
		this.bools=bools;
	}

	@Override
	public String getEntry(int lineNumber) {
		return String.format("%"+columnWidth+"s", bools.get(lineNumber).toString());
	}

	@Override
	public int getEntryCount() {
		return bools.size();
	}

}
